<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>Document</title>
	</head>
	<body>
		<script type="text/javascript" >

			function Vue(){
				this.$x = 'asdasdasd'
				this.$y = 'qwewqeqwe'
			}
			Vue.prototype.a = 'atguigu'
			Vue.prototype.b = ()=>{console.log('我是b函数')}
			Vue.prototype.c = 900


			function VueComponent (){
				this.$q = 'xzyxyzyxyzyzx'
				this.$w = 'opiopiopiopio'
			}

			//让子类的原型对象指向父类的实例，完成继承
			VueComponent.prototype = new Vue()

			const vm = new Vue()
			const vc = new VueComponent()

			console.log(vm)
			console.log(vc)


			
		</script>
	</body>
</html>